﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;


/// <summary>
/// Summary description for BUS_ChildrenClass
/// </summary>
public class BUS_ChildrenClass : DAL_ChildrenClass
{
    DataTable dtC = new DataTable();

    public DataTable ChildrenClass_getAllData()
    {
        try
        {
            dtC = DAL_ChildrenClass_getAllData();
        }
        catch
        {
        }
        return dtC;
    }
    public Boolean ChildrenClass_addtodel(int id)
    {
        try
        {
            DAL_ChildrenClass_addtodel(id);
        }
        catch
        {
            return false;
        }
        return true;
    }
    public Boolean ChildrenClass_del()
    {
        try
        {
            DAL_ChildrenClass_del();
        }
        catch
        {
            return false;
        }
        return true;
    }
    public DataTable ChildrenClass_getAllByChildrenid(string id)
    {
        try
        {
            dtC = DAL_ChildrenClass_getAllByChildrenid(id);
        }
        catch
        {
        }
        return dtC;
    }
    public DataTable ChildrenClass_getAllByClassid(string cid)
    {
        try
        {
            dtC = DAL_ChildrenClass_getAllByClassid(cid);
        }
        catch
        {
        }
        return dtC;
    }
    public DataTable ChildrenClass_getDK(string id)
    {
        try
        {
            dtC = DAL_ChildrenClass_getDK(id);
        }
        catch
        {
        }
        return dtC;
    }
    public Boolean ChildrenClass_InsertDK(DTO_ChildrenClass objC)
    {
        try
        {

            if (DAL_ChildrenClass_InsertDK(objC))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        catch
        {
            return false;
        }
    }
    public Boolean ChildrenClass_Update(DTO_ChildrenClass objC)
    {
        try
        {

            if (DAL_ChildrenClass_Update(objC))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        catch
        {
            return false;
        }
    }
    public DataTable ChildrenClass_getSearch(string childrenid, string classid)
    {
        try
        {
            dtC = DAL_ChildrenClass_getSearch(childrenid, classid);
        }
        catch
        {
        }
        return dtC;
    }
}